package com.itmuch.cloud.study.user.api;

import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.itmuch.cloud.study.user.domain.User;
public interface UserApi {

	@PostMapping("/users")
	public User create(@RequestBody User user);

	@GetMapping("/users/{id}")
	public User get(@PathVariable("id") String id);

	@PutMapping("/users/{id}")
	public User update(@PathVariable("id") String id, @RequestBody User user);

	@DeleteMapping("/users/{id}")
	public User delete(@PathVariable("id") String id);
}
